import request from "@/utils/request"

//定义公共的API
const BASE_URL = "/system/itrLoginLog";

export default {
    //用户分页查询
    getLoginLogPageInfo(page, limit, searchObj) {
        return request({
            url: `${BASE_URL}/${page}/${limit}`,
            method: 'get',
            params: searchObj
        })
    },
    // 根据id去得到一个用户 
    getById(id) {
        return request({
            url: `${BASE_URL}/get/${id}`,
            method: 'get'
        })
    },

    //删除
    // 根据id去删除一个用户
    removeId(id) {
        return request({
            url: `${BASE_URL}/removeById/${id}`,
            method: 'delete'
        })
    },

    //批量 删除
  bactchremoveId(ids) {
    return request({
      url: `${BASE_URL}/removeByIds`,
      method: 'delete', // 提交方式
      data: ids
    })
  },

   

    
    

    
}